tests: add integration test suite for reindexing #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds integration tests that fetch historical node archives from known URLs, unpack them, and build a
reindexer_archive.bin
containing all historical blocks for the target chain. Only exercises thepenumbra-reindexer archive
behavior; doesn't yet exercise thepenumbra-reindexer regen
functionality. Future work can implement that.For now, it's enough to have a reproducible process that confirms all historical chain state (for the popular chains like penumbra-1 and penumbra-testnet-phobos-2) can be collected to form a complete picture of event data. This reproducible process does rely on the existence of external data sources, in the form of historical archives in a known format at known URLs. But at least now we can verify that's the case, with known checksums, as well.
Testing and review
You can pull down this branch and run
just integration
; that'll do needful:penumbra-reindexer archive
to create an sqlite3 databaseHowever, be aware that doing so is a disk- and bandwidth-intensive process. On my machine, the process takes ~60-90m, and results in about 500GB of diskspace being used.